package com.hksj.app.websocket;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class WebsocketResponse implements Serializable {

    @ApiModelProperty("消息类型 connect_reply = 连接回复, report_property_reply = 设备属性上报回复, ask_for_help_reply = 紧急求助回复")
    private String type;

    @ApiModelProperty("json数据对象")
    private Object data = "";

    @ApiModelProperty("响应码 200 = 成功  500 = 失败")
    private int code;

    @ApiModelProperty("响应说明")
    private String msg = "";
}
